﻿<?php
    include('checkAdminAccess.php');
    $iniVars = parse_ini_file('../../config.ini',TRUE);
    include('../classes/adodb5/adodb.inc.php');
    include('../function/db.func.php');
    
    
    $msgEn = $_POST['msgEn'];
    $msgTh = $_POST['msgTh'];
    
    $sql = 'UPDATE text_data SET td_value="'.$msgTh.'" WHERE td_id=33';
    $result = $db->Execute($sql);
    $sql = 'UPDATE text_data SET td_value="'.$msgEn.'" WHERE td_id=34';
    $result = $db->Execute($sql);
    if($result)
    {
        echo "success";
    }
    else
    {
        echo "fail";
    }
   
?>